export type SafetyMeasure = {
  item: string;
  status: 'completed' | 'not_completed';
};

export type Operation = {
  step: number;
  action: string;
  status: 'completed' | 'not_completed';
};

export type Execution = {
  steps: {
    action: string;
    completed: boolean;
    timestamp?: string;
  }[];
} | null;

export type Ticket = {
  id: string;
  type: string;
  location: string;
  status: '待执行' | '进行中' | '已完成' | '已作废';
  target: string;
  applicant: string;
  operator: string;
  supervisor: string;
  applicationTime: string;
  executionTime: string | null;
  completionTime: string | null;
  operationType: string;
  safetyMeasures: SafetyMeasure[];
  operations: Operation[];
  remarks: string;
  execution?: Execution;
}; 